/* This Genie resizes boxes by a percentage factor and sets the margins, frame weight, offset and image scale accordingly. Type is not resized as this genie is for individual boxes, not linked chains. (See the separate TextResize genie).
Written by Don Cox */
signal on error
signal on syntax
address command
call SafeEndEdit.rexx()
call ppm_AutoUpdate(0)
cr="0a"x
counter=0
do forever
box=ppm_ClickOnBox("Click on boxes to be resized")
if box=0 then break
counter=counter+1
boxes.counter=box
call ppm_SelectBox(box)
end
if counter=0 then exit_msg("No boxes selected")
percent = ppm_GetUserText(6,"Percentage of old size")
if percent = "" then exit_msg("Aborted by User")
if ~(datatype(percent,n)) then exit_msg("Invalid entry")